package com.fire.converter;

import com.fire.api.dto.MerchantDTO;
import com.fire.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 将VO商户注册转换为dto
 */
@Mapper
public interface MerchantRegisterConverter {
    MerchantRegisterConverter instance = Mappers.getMapper(MerchantRegisterConverter.class);
//  将vo-->Dto
    public MerchantDTO MerchantRegisterVO2MerchantDto(MerchantRegisterVO merchantRegisterVO);
//  将Dto---->VO
    public MerchantRegisterVO MerchantDto2MerchantRegisterVO(MerchantDTO merchantDTO);

}
